package extend01;

public class demo01 {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.name = "老王";
        teacher.salary = 5000;
        teacher.eat();
        teacher.teach();
        System.out.println(Teacher.class.getSuperclass());

    }
}
